<template>
	<view class="content">
		<image class="headicon" v-bind:src="userInfo.headIcon" ></image>
		<view><text>{{userInfo.userName}}</text></view>
		<!-- 个人中心信息列表 -->
		<view class="entry-wrap">
			<view class="wrap">
				<view class="item">
					<text>个人信息</text>
					<image src="/static/more.png"></image>
				</view>
			</view>
			<view class="wrap">
				<view class="item">
					<text>订单列表</text>
					<image src="/static/more.png"></image>
				</view>
			</view>
			<view class="wrap">
				<view class="item">
					<text>修改密码</text>
					<image src="/static/more.png"></image>
				</view>
			</view>
			<view class="wrap">
				<view class="item">
					<text>意见反馈</text>
					<image src="/static/more.png"></image>
				</view>
			</view>
		</view>
		
		<button type="primary">退出登录</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				userInfo:{
					userId:'001',
					headIcon:'/static/head.png',
					userName:'Tom'
				}
			}
		},
		methods: {
			
		}
	}
</script>

<style lang="scss">
	.content {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		width: 100%;
		height: 100%;
		.headicon {
			width: 150rpx;
			height: 150rpx;
			border-radius: 50%;
			margin-top: 100rpx;	
		}
		.entry-wrap {
			width: 90%;
			margin-top: 50rpx;
			.wrap .item{
				display: flex;
				flex-direction: row;
				// 主轴子元素的对齐方式为两端对齐
				justify-content: space-between;
				height: 80rpx;
				align-items: center;
				border-bottom:#333 solid 1rpx ;
				image {
					width: 48rpx;
					height: 48rpx;
				}
			}
			.wrap .item:first-child {
				border-top: #333 solid 1rpx;
			}
		}
		button {
			width: 95%;
			margin-top: 20rpx;
		}
		
	}
</style>
